home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-16 | 1.5 KB | 67 lines | [TEXT/CWIE] |
- // ===========================================================================
- // <PP Starter Header>.h ©1994-1995 Metrowerks Inc. All rights reserved.
- // ===========================================================================
-
- #pragma once
-
- #include <LApplication.h>
- #include "InputSprocket.h"
-
- class CPPStarterApp : public LApplication {
- public:
- CPPStarterApp(); // constructor registers all PPobs
- virtual ~CPPStarterApp(); // stub destructor
-
- // this overriding function performs application functions
-
- virtual Boolean ObeyCommand(CommandT inCommand, void* ioParam);
-
- // this overriding function returns the status of menu items
-
- virtual void FindCommandStatus(CommandT inCommand,
- Boolean &outEnabled, Boolean &outUsesMark,
- Char16 &outMark, Str255 outName);
-
- virtual void EventResume (const EventRecord &inMacEvent);
- virtual void EventSuspend (const EventRecord &inMacEvent);
-
- enum
- {
- cmd_Suspend = 1000,
- cmd_Resume = 1001,
- cmd_NextElement = 1002,
- cmd_PrevElement = 1003,
- cmd_AddElement = 1004,
- cmd_DeleteElement = 1005,
- cmd_UIStart = 1006,
- cmd_UIConfigure = 1007,
- cmd_UIStop = 1008
- };
-
- enum
- {
- kIconSuiteID_XThrust = 128,
- kIconSuiteID_YThrust,
- kIconSuiteID_ZThrust,
- kIconSuiteID_Look,
- kIconSuiteID_Fire,
- kIconSuiteID_Thrust,
- kIconSuiteID_Pause,
- kIconSuiteID_Start
- };
-
-
- enum
- {
- kNumNeeds = 8
- };
-
- ISpNeed mNeeds[kNumNeeds];
- ISpElementReference mVirtualElements[kNumNeeds];
-
- void InitNeeds(void);
-
- protected:
-
- virtual void StartUp(); // overriding startup functions
- };